<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TuringMachineDiagram: E:/Comp 2012.1/Teoria da Computação/Implementações/turing-machine-simulator-ufc-2012-1/src/diagrama/diagrama.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TuringMachineDiagram
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Permite a criação de diagramas de Máquinas de Turing.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">E:/Comp 2012.1/Teoria da Computação/Implementações/turing-machine-simulator-ufc-2012-1/src/diagrama/diagrama.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="diagrama_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * diagrama.h</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  Created on: 17/03/2012</span>
<a name="l00005"></a>00005 <span class="comment"> *      Author: Vitor</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef DIAGRAMA_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define DIAGRAMA_H_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="regra__diagrama_8h.html">regra_diagrama.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;../modulo/modulo.h&quot;</span>
<a name="l00015"></a>00015 
<a name="l00034"></a><a class="code" href="class_diagrama.html">00034</a> <span class="keyword">class </span><a class="code" href="class_diagrama.html">Diagrama</a> {
<a name="l00035"></a>00035 <span class="keyword">public</span>:
<a name="l00036"></a>00036         <a class="code" href="class_diagrama.html#a91a4a9561c0df161e2b6526f1c6d07d2" title="Construtor.">Diagrama</a>();                                                                                             
<a name="l00037"></a>00037         <span class="keyword">virtual</span> <a class="code" href="class_diagrama.html#a181db35244c27ea498c114f9ba6108b1" title="Destrutor; Limpa todas as estruturas de dados.">~Diagrama</a>();                                                                            
<a name="l00038"></a>00038 
<a name="l00039"></a>00039         <span class="keywordtype">bool</span> <a class="code" href="class_diagrama.html#a297d5411470124fa4ddbd956b6cb76e4" title="Carrega um diagrama especificad por &#39;arquivo&#39;.">carregar_diagrama</a>(std::string arquivo);                            
<a name="l00040"></a>00040         <span class="keywordtype">void</span> <a class="code" href="class_diagrama.html#a62999c5ac71fd75c2a57b568c5514fc3" title="Imprime o diagrama atualmente carregado.">imprime_diagrama</a>();                                                                        
<a name="l00041"></a>00041         <span class="keywordtype">void</span> <a class="code" href="class_diagrama.html#addf844a4392ed01fe03ebb64c9e1ac45" title="Executa o diagrama carregado.">executar</a>(std::string fita_inicial);                                        
<a name="l00042"></a>00042 <span class="keyword">private</span>:
<a name="l00043"></a>00043         <span class="keywordtype">bool</span> carregar_modulo(std::string&amp; linha_modulo,
<a name="l00044"></a>00044                                                         <span class="keyword">const</span> std::string&amp; path);                       
<a name="l00045"></a>00045         <span class="keywordtype">bool</span> carregar_regra(std::string&amp; linha_regra);                          
<a name="l00046"></a>00046         <span class="keywordtype">void</span> limpar();                                                                                          
<a name="l00047"></a>00047         <span class="keywordtype">void</span> imprime_config_atual(<a class="code" href="class_maquina.html">Maquina</a> *mt, <a class="code" href="class_modulo.html">Modulo</a> *modulo,          
<a name="l00048"></a>00048                         <span class="keyword">const</span> std::string &amp;modulo_atual, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &amp;passos);
<a name="l00049"></a>00049         <span class="keywordtype">bool</span> verifica_prox_modulo(<a class="code" href="class_maquina.html">Maquina</a> *mt);
<a name="l00050"></a>00050 
<a name="l00051"></a>00051         std::map&lt;std::string, RegraDiagrama*&gt; m_regras_modulos;         
<a name="l00052"></a>00052         std::map&lt;std::string,Modulo*&gt; m_modulos_carregados;             
<a name="l00053"></a>00053         std::map&lt;std::string,Modulo*&gt; m_modulos;                                        
<a name="l00054"></a>00054 
<a name="l00055"></a>00055         std::string m_modulo_atual;                                                                     
<a name="l00056"></a>00056         <span class="keywordtype">bool</span> m_carregado;                                                                                       
<a name="l00057"></a>00057         <span class="keywordtype">bool</span> m_arquivo_mt;                                                                                      
<a name="l00058"></a>00058 };
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="preprocessor">#endif </span><span class="comment">/* DIAGRAMA_H_ */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 26 2012 21:04:44 for TuringMachineDiagram by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
